package com.jml.consumer;

import org.springframework.amqp.rabbit.annotation.Exchange;
import org.springframework.amqp.rabbit.annotation.Queue;
import org.springframework.amqp.rabbit.annotation.QueueBinding;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/*@Component
@RabbitListener(bindings = @QueueBinding(
        value = @Queue(value = "topic_eamil_queue",durable="true"),
        exchange = @Exchange(value = "topicExchange",durable="true",type= "topic",ignoreDeclarationExceptions = "true"),
        key = "topic"
)
)
public class TopicEamilConsumer {
    @RabbitHandler
    public void process(String msg) throws Exception {
        System.out.println("Topic邮件消费者获取生产者消息msg:" + msg);
    }
}*/
